

from dataclasses import  dataclass
@dataclass()

class TestingEnviroment:
    #测试环境
    HOST = "http://124.70.39.201/"
    USERNAME = "admin"
    PASSWORD = "123123"
    DB = {"host" : "124.70.39.201", "port":3306, "user":"test", "password":"123456", "db":"niushop"}

ENV_MAP = {
    '测试环境': TestingEnviroment
}
HOST = "124.70.39.201"
ENV_NAME= "测试环境"
ENV = ENV_MAP[ENV_NAME]
print(ENV.HOST)